GtkInfoBar: derive from GtkBox, not GtkHBox
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 23:55:03 +0000 (19:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 23:55:03 +0000 (19:55 -0400)
gtk/gtkinfobar.c
gtk/gtkinfobar.h

index 45ca5fe3368cce73c4aa34af312ceb4251fa27bf..642f99c853d57ff4cae44bf7e503a03c7193ac06 100644 (file)
@@ -46,6 +46,7 @@
 #include "gtkintl.h"
 #include "gtkprivate.h"
 #include "gtkstock.h"
+#include "gtkorientable.h"
 #include "gtktypebuiltins.h"
 
 /**
@@ -177,7 +178,7 @@ static void      gtk_info_bar_buildable_custom_finished    (GtkBuildable  *build
                                                             gpointer       user_data);
 
 
-G_DEFINE_TYPE_WITH_CODE (GtkInfoBar, gtk_info_bar, GTK_TYPE_HBOX,
+G_DEFINE_TYPE_WITH_CODE (GtkInfoBar, gtk_info_bar, GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
                                                 gtk_info_bar_buildable_interface_init))
 
index 4a7cf5d83c315a2ca1a5f2eed28a24692e6587d7..38ee94a41b7056e357b10b44db6b8e61066dd2bb 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef __GTK_INFO_BAR_H__
 #define __GTK_INFO_BAR_H__
 
-#include <gtk/gtkhbox.h>
+#include <gtk/gtkbox.h>
 #include <gtk/gtkenums.h>
 
 G_BEGIN_DECLS
@@ -58,7 +58,7 @@ typedef struct _GtkInfoBar GtkInfoBar;
 
 struct _GtkInfoBar
 {
-  GtkHBox parent;
+  GtkBox parent;
 
   /*< private > */
   GtkInfoBarPrivate *priv;
@@ -67,7 +67,7 @@ struct _GtkInfoBar
 
 struct _GtkInfoBarClass
 {
-  GtkHBoxClass parent_class;
+  GtkBoxClass parent_class;
 
   /* Signals */
   void (* response) (GtkInfoBar *info_bar, gint response_id);